package com.shigen.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 电商-公司收发货地址表
 *
 * @TableName address
 */
@TableName(value = "address")
@Data
public class Address implements Serializable {

  /**
   *
   */
  @TableId(type = IdType.AUTO)
  private Long id;

  /**
   * 用户id
   */
  private Long userId;

  /**
   * 是否默认收货地址：0->否；1->是
   */
  private Integer defaultStatus;

  /**
   * 收发货人姓名
   */
  private String receiveName;

  /**
   * 收货人电话
   */
  private String phone;

  /**
   * 省/直辖市
   */
  private String province;

  /**
   * 市
   */
  private String city;

  /**
   * 区
   */
  private String region;

  /**
   * 详细地址
   */
  private String detailAddress;

  /**
   *
   */
  private Date createTime;

  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}
